/*
 * =====================================================================================
 * Copyright (C) 2023 Ingenic Semiconductor Co.,Ltd
 * All Rights Reserved
 *
 * Filename     : reg_pwm.h
 * Author       : Keven <keven.ywhan@ingenic.com>
 * Created      : 2024/07/09 14:55
 * Description  :
 *
 * =====================================================================================
 */

#ifndef __REG_PWM_H__
#define __REG_PWM_H__
#include "reg_base.h"

#define PWM_CCFG0             (PWM_BASE + 0x000) //RW 0x00000000
#define PWM_CCFG1             (PWM_BASE + 0x004) //RW 0x00000000
#define PWM_ENS               (PWM_BASE + 0x010) //W
#define PWM_ENC               (PWM_BASE + 0x014) //W
#define PWM_EN                (PWM_BASE + 0x018) //R  0x00000000
#define PWM_UPDATE            (PWM_BASE + 0x020) //W  0x00000000
#define PWM_BUSYR             (PWM_BASE + 0x024) //R  0x00000000
#define PWM_LVL               (PWM_BASE + 0x030) //RW 0x00000000
#define PWM_WCFG(chn)         (PWM_BASE + 0x0B0 + chn*4) //RW 0x00000000
#define PWM_DES               (PWM_BASE + 0x100) //W  0x00000000
#define PWM_DEC               (PWM_BASE + 0x104) //W  0x00000000
#define PWM_DE                (PWM_BASE + 0x108) //R  0x00000000
#define PWM_DCR0              (PWM_BASE + 0x110) //RW 0x00000000
#define PWM_DCR1              (PWM_BASE + 0x114) //RW 0x00000000
#define PWM_DTRIG             (PWM_BASE + 0x120) //W  0x00000000
#define PWM_DFER              (PWM_BASE + 0x124) //R  0x0000FFFF
#define PWM_DFSM              (PWM_BASE + 0x128) //R  0x00000000
#define PWM_DSR               (PWM_BASE + 0x130) //R  0x00000000
#define PWM_DSCR              (PWM_BASE + 0x134) //W  0x00000000
#define PWM_DINTC             (PWM_BASE + 0x138) //RW 0x0000FFFF
#define PWM_nDAR(chn)         (PWM_BASE + 0x140 + chn*4) //RW 0x00000000
#define PWM_nDTLR(chn)        (PWM_BASE + 0x190 + chn*4) //RW 0x00000000
#define PWM_OEN               (PWM_BASE + 0x300) //RW 0x00000000


#endif /* __REG_PWM_H__ */

